package com.lanting.meetingserver.domain;

 
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.lanting.meetingserver.base.BaseEntity; 
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;



@XStreamAlias("listener") 
public class User extends BaseEntity{

	/***
	 * 用户id
	 */ 
	@XStreamAlias("id") 
	@XStreamAsAttribute 
	@Expose  
	@SerializedName("id") 
	private int userId;
	
	/**
	 * 用户登陆id
	 * */
	@XStreamOmitField
	private String loginId;
	
	/***
	 * 用户姓名
	 */
	@XStreamAlias("username") 
	@XStreamAsAttribute 
	@Expose  
	@SerializedName("username") 
	private String userName;
	
	/***
	 * 用户email
	 */
	@XStreamOmitField
	private String userEmail;
	
	/***
	 * 用户密码
	 */
	@XStreamOmitField
	private String userPassword;
	
	/**
	 * 用户职位
	 * */
	@XStreamAlias("job") 
	@XStreamAsAttribute 
	@Expose  
	@SerializedName("job") 
	private String userPosition;

	
	
	

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	
	public String getUserPosition() {
		return userPosition;
	}

	public void setUserPosition(String userPosition) {
		this.userPosition = userPosition;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		StringBuilder sBuilder = new StringBuilder();
		sBuilder.append("user：编号：");
		sBuilder.append(userId);
		sBuilder.append("用户登陆编号：");
		sBuilder.append(loginId);
		sBuilder.append("姓名：");
		sBuilder.append(userName);
		sBuilder.append("邮箱：");
		sBuilder.append(userEmail);
		return sBuilder.toString();
	}
	
	
	
}
